#ifndef __NET_H__
#define __NET_H__

#define NET_OK 0
#define NET_ERR -1
#define NET_AGAIN -2
#define NET_CLOSE -3

int NET_CreateSocket(int domain); 
int NET_TcpServer(int port, char *bindaddr);
int NET_TcpAccept(int serversock);
int NET_NonBlock(int fd);
int NET_TcpNoDelay(int fd);

#endif

